#ifndef FB_HPP
#define FB_HPP
#include "GL/gl.h"
#include <cstdlib>
#include <cmath>
#include "cor.hpp"

class Framebuffer {
public:
        
        Framebuffer(const int,const int);
        ~Framebuffer(void);

        void setPixel(const double,const double,const Cor&);
        void show(void) const;
        
private:
        GLuint id;
        char * fb_data;
        int w, h, size, line_size;
};



#endif

